package health.lm.com.shop.presenter;

import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.network.callback.SimpleCallBack;
import health.lm.com.shop.activity.HLPeopleDetailActivity;
import health.lm.com.shop.entity.HLPeopleDetailResponse;
import health.lm.com.shop.model.MallModel;

/**
 * Created by Android Studio .
 * Project：hlian health.lm.com.shop.presenter
 * Date：2019/8/12 8:25
 * Introduce：人脉详情
 */
public class HLPeopleDetailPresenter extends XPresent<HLPeopleDetailActivity> {
    public void getData(String id) {
        MallModel.getInstance().getMemberDetailData(id, new SimpleCallBack<HLPeopleDetailResponse>() {
            @Override
            public void onSuccess(HLPeopleDetailResponse pHLPeopleDetailResponse) {
                if (hasV()) getV().setNewData(pHLPeopleDetailResponse.getInfo());
            }
        });
        //HLPeopleDetailEntity detailEntity = new HLPeopleDetailEntity();
        //detailEntity.setAvatar("http://image109.360doc.com/DownloadImg/2018/03/1008/126782666_1_2018031008485635.jpeg");
        //detailEntity.setNickname("全聚德");
        //detailEntity.setTag_1("会链研究院 院长");
        //detailEntity.setTag_2("的亲戚呀成长学堂永远 院长");
        //List<String> honors = new ArrayList<>();
        //honors.add("123");
        //honors.add("234");
        //honors.add("345");
        //detailEntity.setHonor(honors);
        //detailEntity.setName("全聚德");
        //detailEntity.setPhone("13112345678");
        //detailEntity.setEmail("13112345678@163.com");
        //detailEntity.setDepartment("会长/办公室");
        //detailEntity.setPosition("会长/院长");
        //detailEntity.setIntroduce("中国社会学....");
        //detailEntity.setServiceContent("中国社会学....");
//
        //if (hasV()) getV().setNewData(detailEntity);
    }
}
